package com.demo.datastructure.linkedlist;

/**
 * @author jasper
 */
public class Node {
    /**
     * 链表的值
     */
    public int val;
    /**
     * 下一个node
     */
    public Node next;

    public int getVal() {
        return val;
    }

    public Node getNext() {
        return next;
    }

    public Node(int val) {
        this.val = val;
    }

    public Node(int val, Node next) {
        this.val = val;
        this.next = next;
    }
}
